import {RouteRecordRaw} from "vue-router";
import ACCESS_ENUM from "../access/accessEnum.ts";

export const routes: Array<RouteRecordRaw> = [
    {
        path: "/noAuth",
        name: "403",
        // @ts-ignore
        component: () => import("../view/NoAuthView.vue"),
        meta: {
            //表示是否展示在菜单导航
            isHidden: true,
        },
    },
    {
        path: "/home",
        name: "首页",
        // @ts-ignore
        component: () => import("../view/Home.vue"),
    },
    {
        path: "/about",
        name: "关于",
        // @ts-ignore
        component: () => import("../view/About.vue"),
        meta: {
            //表示该页面只能允许管理员访问
            access: ACCESS_ENUM.ADMIN,
        },
    },
]